* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0)

}


#canvas {
    display: block;
}

.toolsbar {
    width: 100vw;
    height: 54px;
    padding: 10px;
    /*position: fixed;*/
    /*bottom: 0;*/
    display: inline-flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
h1{
    font-size: 30px;
    margin-right: 10px;
}

.toolsbar .left, .right {
    display: flex;
    align-items: center;
}

.penBox {
    display: inline-flex;
}

.pen {
    font-size: 20px;
}

.pen.active {
    transform: rotate(-45deg);
}

.icon {
    width: 1em; height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    cursor: pointer;
}

input[type='color'] {
    width: 20px;
    height: 20px;
    border: 2px solid #e6e6e6;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 4px;
}

.clear, .save {
    margin: 0 8px;
}

.paintLineWidth {
    margin-left: 8px;
    padding-left: 4px;
    vertical-align: top;
    border: 2px solid #e6e6e6;
    border-radius: 4px;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

input[type="color"]::-webkit-color-swatch { border: 0; }

.savePhotoBox{
    position: fixed;
    top: 0px;
    left: 0px;
    display: none;
}
.savePhotoBox .title{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    height: 54px;
    width: 100%;
}
.savePhotoBox.visible{
    display: block;
}
@media (max-width: 768px) {
    h1{
        font-size: 16px
    }
    .pen{
        font-size: 24px;
    }

}
